-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Added decimal_isolate.py #3700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added decimal_isolate.py #3700
Conversation
run this command on your pc: |
Thank you so much for the help! |
Your Welcome! |
@cclauss, check this out |
@xcodz-dot You know how this works... Needs type hints as discussed in CONTRIBUTING.md. |
Why not just use mod (num % 1) ? |
Please edit the commit message to be a https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/about-task-lists |
Co-authored-by: Christian Clauss <[email protected]>
This does not work with negative numbers. |
Anything else? |
@cclauss in case you missed it. |
Why not just use mod (num % 1) ? Or https://docs.python.org/3/library/functions.html#divmod |
@cclauss once again moding does not work with negative numbers. |
All doctests use positive numbers. Also, for completeness there should also be a test for zero. #3700 (comment) Is not done. |
@cclauss I updated the doctests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I learned about mod (%) and negative numbers.
* Add files via upload * Delete decimal_isolate.py * Added decimal_isolate file. * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Delete decimal_isolate.py * Add files via upload * Update maths/decimal_isolate.py Co-authored-by: Christian Clauss <[email protected]> * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py Co-authored-by: Christian Clauss <[email protected]>
* Add files via upload * Delete decimal_isolate.py * Added decimal_isolate file. * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Delete decimal_isolate.py * Add files via upload * Update maths/decimal_isolate.py Co-authored-by: Christian Clauss <[email protected]> * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py Co-authored-by: Christian Clauss <[email protected]>
* Add files via upload * Delete decimal_isolate.py * Added decimal_isolate file. * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Delete decimal_isolate.py * Add files via upload * Update maths/decimal_isolate.py Co-authored-by: Christian Clauss <[email protected]> * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py Co-authored-by: Christian Clauss <[email protected]>
* Add files via upload * Delete decimal_isolate.py * Added decimal_isolate file. * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Delete decimal_isolate.py * Add files via upload * Update maths/decimal_isolate.py Co-authored-by: Christian Clauss <[email protected]> * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py * Update decimal_isolate.py Co-authored-by: Christian Clauss <[email protected]>
Created a function program that isolates the decimal from a number.
Checklist:
Fixes: #{$ISSUE_NO}
.